package cn.xiqi.cms.hibernate.service;

import java.util.List;

import cn.xiqi.cms.hibernate.DAO.DataDAO;
import cn.xiqi.cms.hibernate.beans.Metadata;

public interface DataService {
	public Metadata getByID(int id);
	public List<String> getCate();
	public List<Metadata> getByCate(String cate);
	public int addCate(String cate);
	public int addValue(String cate, String key, int value);
	public boolean delete(Metadata record);
	public boolean update(Metadata record);
	public void setDao(DataDAO dao);
}
